<?php

/*
 * 资讯列表
 */
class ArctypeAction extends CommonAction{
    function index($id){
        $m = M('Arctype');
        $type = $m->find($id);
        if($type['shuxing'] == 1){$temp = $type['tempindex'];}
        elseif($type['shuxing'] == 2){redirect($type['wburl']);}
        else{$temp = $type['templist'];}
        $this->assign('type',$type);
        //删除缓存文件
        $cache_file = md5(TMPL_PATH.'Home/lufeng/'.$temp.'.html').'.php';
        unlink(CACHE_PATH.'Home/8ce106fb10b1154f04579585b9f28bd2.php');
        $this->display(C('MYTEMP').'/'.$temp);
    }   
}